package com.neu.his.controller.RegistFee02;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.conditions.update.UpdateWrapper;
import com.neu.his.bo.fee.CostItem;
import com.neu.his.bo.fee.FeePayRec;
import com.neu.his.bo.fee.FeeRec;
import com.neu.his.bo.fee.FeeSend;
import com.neu.his.core.Result;
import com.neu.his.entity.*;
import com.neu.his.mapper.*;
import com.neu.his.service.registFee02.FeeService;
import com.neu.his.service.registFee02.impl.FeeServiceImpl;
import com.neu.his.utils.PageList;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.List;

@Slf4j
@RestController
@CrossOrigin
@RequestMapping("/fee")
public class FeeController {
    @Autowired
    private FeeService feeService;

    @PutMapping
    public Result getCostItem(@RequestBody FeeRec feeRec) {
            return feeService.getCostItem(feeRec);
    }

    @PutMapping("/pay")
    public Result payItem(@RequestBody FeePayRec feePayRec) {
        return feeService.payItem(feePayRec);
    }
}
